package test.src.awt_swing;

import java.awt.*;

public class FlowLayoutDemo {
    public static void main(String[] args) {
        Frame frame = new Frame("这里测试FlowLayout");
//        frame.setLayout(new FlowLayout(FlowLayout.LEFT, 20, 20));
        frame.setLayout(new FlowLayout(FlowLayout.RIGHT, 40, 20));
        for (int i = 1; i < 101; i++) {
            frame.add(new Button("按钮" + i));
        }
        frame.pack();

        frame.setVisible(true);
    }
}
